home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 43
/
Aminet 43 (2001)(GTI - Schatztruhe)[!][Jun 2001].iso
/
Aminet
/
comm
/
mail
/
YAM22src.lha
/
C_c.sd
next >
Wrap
Text File
|
2000-11-03
|
1KB
|
42 lines
##stringtype C
##shortstrings
/****************************************************************
This file was created automatically by `FlexCat V1.3'
****************************************************************/
#include <clib/locale_protos.h>
static long %b_Version = %v;
static const STRPTR %b_BuiltInLanguage = (STRPTR)%l;
struct FC_Type { long ID; char * Str; };
const struct FC_Type _%i = { %d, %s };
static struct Catalog *%b_Catalog = NULL;
void Open%bCatalog(void)
{
extern struct Library *LocaleBase;
extern void Close%bCatalog(void);
if (LocaleBase && !%b_Catalog)
{
%b_Catalog = OpenCatalog(NULL, (STRPTR)"%b.catalog", OC_BuiltInLanguage, %b_BuiltInLanguage,
OC_Version, %b_Version, TAG_DONE);
}
}
void Close%bCatalog(void)
{
if (LocaleBase) CloseCatalog(%b_Catalog);
%b_Catalog = NULL;
}
char *GetStr(APTR fcstr)
{
char *defaultstr;
int strnum;
strnum = ((struct FC_Type *)fcstr)->ID;
defaultstr = ((struct FC_Type *)fcstr)->Str;
return %b_Catalog ? (char *)GetCatalogStr(%b_Catalog, strnum, (STRPTR)defaultstr) : defaultstr;
}